home *** CD-ROM | disk | FTP | other *** search
- //╔══════════════════════════════════════════════════════════════════════════╗
- //║ ║
- //║ This example show how to use FLI32 library with Watcom C ║
- //║ ║
- //║ ║
- //║ ║
- //╚══════════════════════════════════════════════════════════════════════════╝
-
- #include <stdlib.h>
- #include "..\resource\eos.h"
- #include <process.h>
-
- char *Set_Video_Mode(long video_mode);
- #pragma aux Set_Video_Mode parm [eax] modify [eax] value [eax] = \
- "int 10h" \
- "mov eax,0a0000h";
-
- void main(int argn, char **argv)
- {
- Init_EOS();
-
- Fli_Selector=Allocate_Selector(Set_Video_Mode(0x13),0x0f);
-
- if (Load_Fli("..//data//test.flc")==NULL)
- Exit_Error (" ■ File not found !\x0D\x0A\x24");
-
- First_Frame_Fli();
- while ( !kbhit() )
- {
- Wait_Vbl();
- Next_Frame_Fli();
- }
- Dispose_Fli();
- exit (0);
- }